package com.base.common.persistent.dao;

import java.util.Date;

import org.apache.ibatis.annotations.Param;

import com.base.common.persistent.model.SmsReport;

public interface SmsReportMapper {

	/**
	 * 添加消息记录
	 * 
	 * @param smsReport
	 * @return
	 */
	public int addSmsReport(SmsReport smsReport);

	/**
	 * 更新消息阅读状态
	 * 
	 * @param readTime
	 * @param status
	 * @return
	 */
	public int updateReadTimeStatusById(
			@Param(value = "readTime") Date readTime,
			@Param(value = "status") int status, @Param(value = "id") int id);

	/**
	 * 
	 * 
	 * @param visiblenessValue
	 * @param valueOf
	 * @return
	 */
	public int updateVisiblenessById(
			@Param(value = "receiveVisiblenessValue") int receiveVisiblenessValue,
			@Param(value = "senderVisiblenessValue") int senderVisiblenessValue,
			@Param(value = "id") int id);

}
